<?php $this->fetch('public/head') ?>
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this"><a href="<?php echo url('index') ?>">招聘列表CN</a></li>
            <li class=""><a href="<?php echo url('index_en') ?>">招聘列表EN</a></li>
            <li class=""><a href="<?php echo url('add') ?>">添加招聘CN</a></li>
            <li class=""><a href="<?php echo url('add_en') ?>">添加招聘EN</a></li>
        </ul>
        <div class="layui-tab-content">
            <hr>

            <form action="" method="post" class="ajax-form">
               <div class="layui-tab-item layui-show">
                    <table class="layui-table">
                        <thead>
                        <tr>
                            <th style="width: 30px;">ID</th>
                            <th>职位</th>
                            <th>发布时间</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php foreach($list as $v): ?>
                            <tr>
                                <td><?php echo $v['id'] ?></td>
                                <td><?php echo $v['title'] ?></td>
                                <td><?php echo $v['addtime'] ?></td>
                                <td>
                                    <a href="<?php echo url('edit?id='.$v['id']) ?>" class="layui-btn layui-btn-normal layui-btn-xs">编辑</a>
                                    <a href="<?php echo url('delete?id='.$v['id']) ?>" class="layui-btn layui-btn-danger layui-btn-xs ajax-delete">删除</a>
                                </td>
                            </tr>
                        <?php endforeach; ?>
                        </tbody>
                    </table>
                    <!--分页-->

                </div>
            </form>
        </div>
    </div>

<?php $this->fetch('public/script') ?>